const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // lintOnSave:false,
  devServer:{
    proxy:{
      '/api1':{
        target:'https://www.toutiao.com',
        pathRewrite:{'^/api1':''},
        changeOrigin:true //允许修改host字段  会说谎
      },
      '/api2':{
        target:'https://news.baidu.com',
        pathRewrite:{'^/api2':''},
        changeOrigin:true
      }
    }
  }
})
